﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Argument
{
    class Program
    {
        static void Main(string[] args)
        {

            Argument argument = new Argument();
            argument.age = 19;
            Console.WriteLine("去年年龄：" + argument.age);
            引用类型(argument);
            Console.WriteLine("今年年龄：" + argument.age);


            Console.ReadKey();
        }

       
        static void 引用类型(Argument c1)
        {
            c1.age = c1.age + 1;
            Console.WriteLine("年龄:" + c1.age);
        }
    }

    class Argument
    {
        public int age;
    }
}
